# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=geoedge
pkgver=0.2
pkgrel=7
pkgdesc='This little tools is designed to get geolocalization information of a host, it get the information from two sources (maxmind and geoiptool).'
groups=('blackarch' 'blackarch-recon')
depends=('python')
license=('GPL')
arch=('any')
source=("$pkgname::http://www.edge-security.com/soft/$pkgname.py")
sha512sums=('46ab90554ef853c0752884ec9191b30591b0259cc568ae9d191903b0e33affcdffd0047119bdd13e24670b07b02fa5755c2d66aa19a8387dd27857cf9be862eb')

prepare() {
  sed -i 's|/usr/bin/env python|/usr/bin/env python2|' $pkgname

}

package() {
  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
}

